Refactor to use appT.