Added loadFeatures support function