Added a bunch of functionalitlity. Now it works for google.