Add action to write header