This sim-safe.c will now work, need to move the stuff from main into the Macro