Added variable debug lines to main.