Added production of next state of command along with the changed scope
to parent scope.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>