Changed direction of how movement is calculated.