Implementing Rules check.  Almost complete, but some bugs to work out.