Added ConnectionFactory and relative  tuning parameters