Updated wago script with respect to the new connection class.