Fixed read/print functions