Added checkData method