Fixed 'do_step' global variable definition.