Make conn singleton
Add logic class to adapt to the changing bandwidth