Added missing gravity functions