Add compatibility for Firefox