Fix piping and cloning.