Moved model method sinto Model.