Set stack while calling OnFrame