Code for LINC with optical extension