Functioning with recursively generated database.