Add a function for firefox.