Set CN with library function