Updating plugin to include autoRefreshEnabled flag