Added code to implement the --min-size logic.