Added threat dispatch and errors on module cfg
Add new function exceptions