Modificiation to how stack output is chosen