Added setName function