Made the browser setting dynamic and updated variable usage accoringly (e.g. browser -> driver)