Changed header to match correctly and added default for if the header doesn't exist.