New function for comparison with Jiang