Removed Events and Hooks, Added logic to support multi server set up.