Add export/unexport. Correct int to char[]