Added predefined naming of files when ->name is empty.