Add definition to manage extra files and add support for sortlist