Corrections, main implementation.