Added support for model methods in select