Profile support.
Fixed back stack bug.