Implement actual backing up. Remove recursion, as it is not necessary.