Adding gravity api script.