Added le connection cheking function.