Modified rules to match magic methods.