Level and area custom rules, minor fixes