Added mouse motion control.