Wrote create_activity and track_new_measurement for the activities controller. Haven't tested.