Changed configuration options. Added logging.