Started and copied pipeline analysis function