Adding better functions to set/get the gravities