Make stored variables available to anonymous function scopes by making use of the workaround we already have in place for that.
Added support for the pause command