Fix piping - although now it's really slow...