Bug Fixing

The script now correctly reads the information from the header.