Update track_motion.cpp