Added support for modifier exclusion in exportFunction()