Partial implementation of nestable chain-of-command.