Added ViM connection diagnostics function.