Debug added to checkData()