Move h2 injection function to the top