Implemented default_dir and file_dir in application settings so I could remove some extra arguments.