Adding pipeline return codes