def index_finder(line):
    """Searches the water output line
    for alignment position indexes.
    """
    index = 0
    if len(line.split()) > 1:
        if line.split()[1] == 'al_start:':
            index = int(line.split()[2])
        elif line.split()[1] == 'al_stop:':
            index = int(line.split()[2])
    return index