Added support for function based pipes