Added more efficient methods to the EntityHelper.