Corrected function indexes.