Parse header and add some constants