Added logic to load qualifying results. Also added corresponding unit tests