Added getallheaders function.