Made the add model from server function more efficent by bringing it inline with the regular add model function.