Implement correction function.