Make mirror work. Set up connections on a data structure to reconnect