Tested the read function, works okay.