More work on loading and executing rules