Added returned functions for model