Photonics applications