Code changes

I didn't test so make sure to load Dota and see if this is good