Implemented naive mincen simulation.