Globals need to be generated at top level and params in separate includes