More work done on create_file()