Error and reduction error printing added