Started working on building the dict of rules.