Begining to add in rules support.