Added comments and invocation of checkBrowser