getLargestObject now working correctly