Commented action-get recursion algorithm for clarity.