Fixed debugging options, file sorting