Removed Unnecessary printlines
Improved connection log