Updated rules file to auto-generate flags