Generating headers in separate function [ modular way].