made qname and sleep time parameters