Added support for kiosk mode.