Added support for older browsers