Better implementation of retro_reset