Added open outlet and included in main script