Improve adding new outputformat (unfinished)