Be more efficient about defining dynamic methods