Wraped the code in a function so that we dont polute the global namespace