Made the trigger events thread-safe during invokation.
Implemented Attach(In/Out) system that let's you create a callback for a specific header.