Refactored: added piped_end_info