Added generate header functionality