Clean out checkData function