Updated stack implementations.