Add reading of the rules to the document