def compile_optional_data(data):
    """Compile Optional input.
    
    Args:
        data (str): Input string from website.
    
    Returns:
        dict: An optional dict recording target parameters.
    """
    optional_data=data.lower().replace(" ","").split(",")
    return_dict={}

    if len(optional_data) != 0:
        for param in optional_data:
            if "label_classes" in param:
                return_dict['label'] = True
            if "crop" in param:
                return_dict['crop'] = True
            if "detection" in param:
                return_dict['detection'] = True
            if "classifier" in param:
                return_dict['classifier'] = True
            if "label_bones" in param:
                return_dict['expand'] = True
            if "limit" in param:
                return_dict['limit']=int(param.split("=")[1])
            if "use_and_operator" in param:
                return_dict['and'] =True
    return return_dict