Instead of getmodelloadfunction we now use getmodel to load models