Added timer for avoiding constantly trying to connect to Scratch