Made datasets transient, and perhaps fixed a memory leak.