Cond works!

All it took was a touch of recursion. Thanks @lkuper!