Updated simulation duplicate code
Merged contents