Handling nested quantifications inside of recursive functions.