Need to clean up memory, but hooray it works.