Adjusted code to fit hoster