More work on saving and loading rules.