Implemented simulation algorithms.x