Add stack expander function.
Bugfix stack expander, make static.