Add utility methods for stacks