Adding dynamic pipeline logic