Can we move this to the top of the file?  I think having vars within the rules could make things confusing.