Added double PRI checking.