Added -f flag to specify a configuration file