Changing config to main for script entry