Added gravity changing functionality