Program written but it currently runs under the assumption that the sequence is in one line. Must fix.