Data capture and analysis