Addition of checks to stop the error messages we've been getting because of the google bot.