Cleaner math for the Leap demo