Preliminary support for automatic restart.