Removed the function to check for user agent because found a MUCH MUCH better fix