Reimplement simulation maxDuration on top of Controller