Add #ifdef for Simulator.