Added connection loop
Merge pull request #1 from superaxander/patch-1

Added connection loop