Handles multiple models well. Changed global "API"