Started working on a new sampling framework.