Updated Avro loader to take two arguments