Rain added again with threshold as parameter