Bug 881512 - Crude attempt at segment parser.