Added 'skip scan' mechanism to reduce the occurrences of connections vanishing right after being added, and added a repaint when connections are removed.