Various updates.
First tentatively working version of pipeline.