Add Photon Network API and logic