Added new imports. Added error traceback to logging.