Add frequency=0 check and fix bug where handler is called immediately on start()