Added wrapAll method to model