blah
Fixed memory leaks lol