Implemented gravity.