Added write out header info