Added support for --stateless mode.