Added parameters to movement functions