Modified Methods.java boolsRule method.