def METHOD_NAME(called_from_cron, machine, crontab_line, exptdir, debug):
    """Add crontab line to cron table"""
    #
    # Make a backup copy of the user's crontab file and save it in a file.
    #
    time_stamp = datetime.now().strftime("%F_%T")
    crontab_backup_fp = os.path.join(exptdir, f"crontab.bak.{time_stamp}")
    log_info(
        f"""
        Copying contents of user cron table to backup file:
          crontab_backup_fp = '{crontab_backup_fp}'""",
        verbose=debug,
    )
    # Get crontab contents
    crontab_cmd, crontab_contents = get_crontab_contents(called_from_cron, machine, debug)
    # Create backup
    run_command(f"""printf "%s" '{crontab_contents}' > '{crontab_backup_fp}'""")
    # Need to omit commented crontab entries for later logic
    lines = crontab_contents.split('\n')
    cronlines = []
    for line in lines:
        comment = False
        for char in line:
            if char == "#":
                comment = True
                break
            elif char.isspace():
                continue
            else:
                # If we find a character that isn't blank or comment, then this is a normal line
                break
        if not comment:
            cronlines.append(line)
    # Re-join all the separate lines into a multiline string again
    crontab_no_comments = """{}""".format("\n".join(cronlines))
    if crontab_line in crontab_no_comments:
        log_info(
            f"""
            The following line already exists in the cron table and thus will not be
            added:
              crontab_line = '{crontab_line}'"""
        )
    else:
        log_info(
            f"""
            Adding the following line to the user's cron table in order to automatically
            resubmit SRW workflow:
              crontab_line = '{crontab_line}'""",
            verbose=debug,
        )
        # add new line to crontab contents if it doesn't have one
        newline_char = ""
        if crontab_contents and crontab_contents[-1] != "\n":
            newline_char = "\n"
        # add the crontab line
        run_command(
            f"""printf "%s%b%s\n" '{crontab_contents}' '{newline_char}' '{crontab_line}' | {crontab_cmd}"""
        )