Fix case sensitivity
Remove commented-out line
Support --min and --max