Refining and pipelines