Error handling and readability