Added patterns for method matching