This now takes into consideration browser support.