Small fixes.
Custom pipeline function.