Added a simple parameter for the resources threshold