Could probably pick something more descriptive than ``mem``, maybe something that makes it more immediately apparent on how this recursive method works.