Based on Halvie's D analysis