Added real code to data collection