Added code for H2H resolution