Fixed bug with stacked commands

You can now spam commands and get correct output. Look commands should
be added as an immediate command by the blocking command after which
they are to be executed.