miniSim: added random block. Small improvements.