Refactored pipes. Started TCP streams