Simplified the generation of the motion output.