Updated to allow google-specific parameters to be passed into the constructor.