add delay parameter. see izuzak/izuzak.github.com#11