Removed write debug statements and added read debug statements