Added logging.
For fun.