Switch histPipe to using a vector