Implemented read data logic