Removed class TrampolineManager
Added checks for hooking state and function prolog