Added name generation functionality