Implemented minimum/maximum threshold for models