Changed velocity calculating