Changed the hlink_pool variable to be a global since only the main