Corrects errors and adds items to output message arrays.