Initial motion detection work