Added some rudimentary console logging.