Enhanced explain for functions
Corrected problem with missing conditional variables