Add random and repeat commands