Updated BufferGenerator to take a sequence; cleans up the API some.