Generate headers in code