Added funcitons file to store all data collection functions