Add support for automatically-restarting objects.