Add beginTimestamp and endTimestamp attributes in header