Refactor pipe start