Moved check for hook IPs out of index so that it is only loaded on startup