Resolve issue with recursing. Curse you, PHP!