Moved read to lib