Add in locks for pipe.