This also looks like it wont work when name contains a `'`