Finished compSim implementation