Refactored the manner in which velocity is calculated