Added get header function