* Moved hooks deleteion at top of scripts because of strange bug.