Fixed up to use new record formats from erlang_protobuff