Finally wrapped it so it won't load until the page is loaded