Implemented detour for the active script.