Added stack code for mt/lf