Update gravity.php