Some loading stuff, remove unneeded code