Neha, Shruthi | #2315 | Fixing the code to always pick up the latest result