Uniform version for _sim.m