Maybe better to do it in ```fileinfo_new```?(To avoid repetitions)