Fix for duplicate API function error