Allowing setViewData to use compact()