Debug exam function creation.