Fixed split configs.
Get arguments from config.
Add error logging.