Added support for accessing model methods.

Signed-off-by: Joshua Stine <joshua.stine@gmail.com>