Update the algorithms for fetch hook