Added check to make sure reads are successful