Add check file name function. Update init.