Pipeline and cleanup.