Prep for the implementation of tailrec