Set up framework for error corrections.