Error handling and refactoring