Removed die()'s at parts where the header did not effect any code execution