Replace thread with InlineHook
Add config