Added functionality to move left and right