pro MDACKill, tlb
	widget_control, tlb, get_uvalue = state

	valid = widget_info((*state.pinfo).MDACID,/valid_id)
	if not valid then return

	; Keep track of current window so we can reset when done
	curwin = !d.window

	; Reload the pixel maps using the new color table
	device, get_decomposed=d ; the original state
	device, decomposed=0     ; necessary to use 8-bit color table

	; Temporary holding for header
	hdrs = (*state.pinfo).imgHdrs

	; Loop to load up the pixmaps
	; Load undifferenced images if doDiff not set
	if (*state.pinfo).doDiff eq 0 then begin
		tvlct,r,g,b,/get
		for i=0,(*state.pinfo).nimages-1 do begin

			; Set to the ith pixel map
			wset,(*state.pinfo).winIndex(i)
			;image = reform((*state.pinfo).img[i,*,*])
			image = reform((*(*state.pinfo).img)[i,*,*])
			tv,image
			; Add times if necessary
			if (*state.pinfo).times eq 1 then begin
				ahdr = hdrs(i)
				xyouts,10,10,ahdr.date_obs + ' ' + $
				strmid(ahdr.time_obs,0,5), chars=1.5,/device
			endif
		endfor
	endif else begin
		; Load differenced images if doDiff is set to 1
		times = 1
		prev = (*state.pinfo).img[0,*,*]
		for n = 1,  (*state.pinfo).nimages-1 do begin
			;old = (*state.pinfo).img[n,*,*]
			old = (*(*state.pinfo).img)[n,*,*]
			;image = bytscl(fix((*state.pinfo).img[n,*,*])-prev,-30,30)
			image = bytscl(fix((*(*state.pinfo).img)[n,*,*])-prev,-30,30)
			prev = old
			wset,(*state.pinfo).winIndex[n]
			tv,image
		endfor
	endelse

	; Reset window and decompose
	wset,curwin
	device, decompose=d
	; Commented out these 4 lines 21 Feb 2003; no ill effects noted
	rgb = intarr(3,256)
	tvlct,rgb,/get
	(*state.pinfo).rgb = rgb
	rgb = 0

	; Restore the timer info
	if state.startStop eq 'Stop' then begin
		(*state.pinfo).forward = (*state.pinfo).dirSave
		(*state.pinfo).stall = (*state.pinfo).stallSave
		widget_control,(*state.pinfo).mdacid, timer = (*state.pinfo).stall
	endif

end