Updated write and createDestination