Refactoring active_connections to be active instead