Modifications to https://github.com/chetan/UASparser