Put addMethod in a variable