How do pipelines work?