Implemented getting of gravity term