Removed extraneous variable regarding connection status.