Add utility to insert pipeline stages in a given ordered pipeline