Added a property to track the open/closed state.