Update motion.c