Use of a generic stack approach