Changed velocity from vector to integer.