Modify function of gravity