Parameter name on '__details_event' corrected/clarified. The name was negative logic of what is should have been. Also re-ordered/compressed removal and setting variables to undefined.