Fixed read-functionality