Handle onetime mode.