Add some extra stack functions