Use $self->current_shell in a few placel.