Code for reading avro files.