def write_message(msg, indent=False, mtype='standard', caption=False):
    """Writes message if verbose mode is set."""
    if (mtype == 'debug' and config.DEBUG) or (mtype != 'debug' and config.VERBOSE) or mtype == 'error':
        message(msg, indent=indent, mtype=mtype, caption=caption)
Writes message if verbose mode is set.