Cleared updateEntites code out