added delay support
Merge pull request #5 from icodeforlove/master

adds delay support