Renamed function read to _read as it was colliding with built-in function