Changed things to allow checking for invalid method in rules