Added threshold example