Make also subfolders with MAIN working.