Misc preparations for rule handling