Added option to exit immediately.