Remove comment.
Refactor stack functions into separate type.