Added functionality to montecarlo001