Added helper function for ground truth