Added connected state to network service.