Generate the model file

Scan() method works now