Added sim-safe.c