Changed model to deal with functions