Since we're adding recursion, we should probably move our variable
declaration outside of the potential recursive function