Better granularity for registering user-defined methods.