Unit simulator implementation