Sample code for COSCRON