Print to stderr to avoid prints in the xml file.
Remove unused method. Add missing semicolon.