Some typos, code now throws for duplicated names