Removed recursion.