Refactored Hama Pipes