def parse_stats(stats_dict):
    """Parses through the information in the provided stats dictionary
    and returns a list of properly formatted information."""
    messages = []
    messages.append("\n\nOperator Stats\n")

    if stats_dict == {}:
        return [
            "\n\nOperator Stats\nCould not retrieve stats for some reason!"
        ]

    levels = ["ne", "e1", "e2"]
    formatted_levels = ["E0 max", "E1 max", "E2 max"]
    max_stats = []

    # Fetch the basic stats for each level (if it exists)
    # We check the max atk stat for each, and if it's not a ""
    # then we know that operator has that lvl
    for rank, formatted_rank in zip(levels, formatted_levels):
        if "max_atk" + rank in stats_dict.keys() \
                and stats_dict["max_atk" + rank] != "":
            max_stats += [
                formatted_rank,
                "Max atk: " +
                str(stats_dict[f"max_atk{rank}"]) + " atk",
                "Max def: " +
                str(stats_dict[f"max_def{rank}"]) + " def",
                "Max hp : "
                + str(stats_dict[f"max_hp{rank}"]) + " hp",
                "Res    : "
                + str(stats_dict[f"{rank}_arts"]),
                "Block  : "
                + str(stats_dict[f"{rank}_block"]),
                "Cost   : "
                + str(stats_dict[f"{rank}_cost"]) + " dp \n"
            ]

    if len(max_stats) == 0:
        # Very minor formatting issue but this is to get rid of
        # the new line inserted by the final formatter
        # by simply adding it to the first element of
        # the list and not a seperate list element
        messages[0] += "No stats found!"

    messages += max_stats

    # Retrieve the attack interval and redeploy time
    # By adding an empty space at the end, we fool the parser
    # into inserting only 1 newline
    messages += [
        "Attack Interval: " + str(stats_dict["atk_int"]) + " s"
    ]
    messages += [
        "Deployment Time: " + str(stats_dict["deploy_time"]) + " s"
    ] + [""]

    return messages