Error handling and typos