Added more safari stupid logic ughhh.