Open and run should be ifRoom instead.
Removed dead code.