Modifications to make Krawczyk 1D work