Adding rules and stuff