Allow pointers to be passed in for decoding