John thanked Bill because he was helpful.

Who is he referring to in this sentence?
Bill