Moved velocity variable up the heirarchy tree