Server side code for CKN