Receiving function for custom pipes so that there is no energy loss