Reverted to_codes/2 changes.  A little suspect that this passes variables
and causes crashes.