Added check before run simulation