Switched analysis engine creation to non-deprecated function