Implemented: Exception handling and logging