Add callback for creating pipeline