Fixed bug in coroutine. Also changed to hangtime

instead of using velocity