Updated functions and TraktTv.php