Merge sender and encoder