More robust way to avoid attempting to marshal Procs