Added buffer and clock headers to megaheader.