Rules.cs working fairly well. Some debugging likely remains.