Removed global variable from test program.