Added extern C