Added basic stack functionality.