Skeleton code for custom pipeline