Adding rules stuff.