Added a lil' bit of logging.