Added check of connection