Added code to parse HTML groupings.