Add photon num limit utility.