First attempt at actual recursion for libraries.

Forgot to add that the first time.