Updated connection type - added useful method that can be used for UI.