Added is connected check