Got the accelerometer data to update and save into an object which will be used to calculate steps and distance.