Helper functions to streamline stack development