Initial stack persistence for tab. Other improvements.