Changed pkg function to tage stages as a single list