Debugged to remove when cannot connect