Added support for norebase and noclear options.