Photon Server Code for SAO