Corrections in the code and variable names that were creating issues when it came to the simulation