Not working. Added option to detect only one model (by passing as last argument its position in the list of models).