Added config options, and firefox support hack