Added disc purging, and fixed a bug with disc ops