Trim all operations in the pipeline

Fixes #51