Reworked the overload script
Wrapped trace log entry in a sub routine to avoid computation
Map all undef to string 'undef' for trace log entry