Add code to put back the retstack.