Updated velocity to return seperate x and y values