Updated for firefox