Added a collapse feature for the samplers.