Changed SG_EXPORT to SG_CALL