Better handling of this.tempContainer.