Cleaned output of waiting loop, cleaned up duplicate xml_runner code.