Added the delay clause.

@AmbientOSX 

- Fixed a bug in the delay action (it needs to use milliseconds, not seconds)
- Added the delay clause.