Enhanced to exit code in a toast.
Enhanced to call xDraw().