Added autoclose brackets flag. Changed updater logic.