Main with config file