Modified ecran function