Added customizations for logging and error handling