added delay-option to queue tasks