make queue checking as decorator.
implemented duration and delay methods.
added newline at end of file.