Renamed htreq to hthead and added functions for transfer of requests.