Added log to Agent