Move results declarations into highest-level scope. Re-enable more console output.