Initial code for pipes