Moved rules to YAML