Add rules complience to code