Fixed J algorithm