def METHOD_NAME(sec):
    """Set delay (in seconds) between queue checks."""
    global delay
    if sec.isdigit():
        sec = int(sec)
        delay = sec
        _logger.info("Setting delay to %d seconds.", sec)
        return True
    else:
        _logger.warning("Given delay not a digit. Using default.")
        return False