Added support for loop wait time
New version