Collecting device motion data.