Slightly modified script to handle error conditions better.
Published API key.