Update readpipe.m