Open/Close functions added