Reorder these rules so they work right