added rpm and triac control