Simplify encoder.
Change size of reads in decoder.