* Replaced dumb runall code with smart runall code