Restarted coding