Add support for specifying frequency to simulator.