Added connection checks upon initialization.