Update motion_metrics.R