Adding threshold change