Added support for Safari