GH-5 Restructured code: made addWire() async