Add generate_scale
Update generate_scale
Rebuild generate_scale
Use int