Moved best_linking declaration outside