Reporting cleanup, use different variables for different state switching results to avoid being tripped on local / global name scope