Added code for manual host connection