Updated headers method to remove unnecssary variable assignment.