Improve stack command