Added config file and logging.