Implemented method to update old and insert new results for problem based reco as a seperate function