Adds REPEAT, DEFAULT_DELAY
It also correct some other bugs. There shouldn't be any bugs left. I tested it, I've seen no regression @binkybear, @jmingov
It also correct some other bugs. There shouldn't be any bugs left. I tested it, I've seen no regression @binkybear, @jmingov