Done all the simulation part