Added connection functions in main scarlett obj