Trying to fix reconnection problems.