Added some logging

Added some logging.