Add variable initialization code for mSimulating in SimWindow class.