Modified Google API to work