Add dynamic methods for models