Updated literal to the new api. Add some STDERR lines to mark restarts.