Fixed bugs and set QB to work with a results panel