Tweaked V1-like algorithm