Updated old pset to free memory properly