Trying to port to firefox