Added open function