Resolve rules.