Added browser compatibility