Added threshold
Fixed default transition