Added motion control functions