Added config for rules and worked on saving them