Added statisticssampler and more stuff