feat: Implemented queue and outlined connection handling