Added query delay feature.