Update logging for easier debugging