Removed call to deprecated TE API call to help prevent crashes.