try converting the delay value sent to runin to an integer using toInteger()
You'll need to modify the capability used for buttons, our implementation is here: