Add rules. Close #1