Improved pipe-ip-copy script.