Added a threshold check when looking for available jobs