Motion history running properly