Added runAll & various related functions, fixed redrawing bug