Fix register function to remove the 'name' requirement