Adding logs for debugging.