Deleted function checkFileName (as reduntant)