Tweaked to save samout data after every sampler; pushing for testing