Added more logging when starting agent