Added logging to agent project