Updated read byte code (not yet fully working).