Adjusted MutationRecognizer to be able to recognize nested elements