Updated google.php to support the way of handling state data.