Beginning of Monte Carlo module