Large refactor of the model detection and loading code.
Attach a file by drag & drop or click to upload