Improved check connection