Updated CoreEngine. NewDialog can tell file type.