Optimize Magic and add in essence gui