Scope changes

Added handler functions to add connections at the top level.