Changed Monte Carlo to use numerical ids