Updating the main hooks for running from its new location