Adding some rudimentary logging.