Replace collector with Agent