Add detect browser presence functionality.