Fixing code for approbation.