Changed pnr to long