JK: Made location be empty string instead of null, and added more logging.