Fixed to use Google methods rather than object properties

the properties change regularly. fixes #7