Added motion profiling from 254's code