Started on pipeline class. Bit more effort needed to convert it from script ..