Added decoder for record header