Added logging.
Version 0.0.3