More work on the wireconnected function