Implemented cool error handling.