Make sure exec_code calls are safe

This routine makes sure that the exec code calls to embed unintended routines