Fix bug where results were not recorded