Using the headers methods instead accessing the variables