Adding utility functions to HeaderChain