Convenience read() function. Not the best but it works