Add ability to add a pause between loops in capacitor