Added UpdateOpenClose()