Track num instructions earlier in the trace function so infinite recursion can be stopped.
Throw out old puts redefinition attempt.