Moved pipeline to preprocessor, hopefully nothing is broken