Refactored browser processing and parsing functions.