Moved declaration of filename variable to io header.