First version of separated pipeline