Added second threshold