(main): Don't unconditionally define variables only use if