Changed speed to separate x and y values