Add support for pipeline transforms. Other fixes.