Restored regression in sampleSingle etc