Added open and close