Split model functions off.