More reliable way to produce single photons