Working out some kinks in the project. Weird errors. Memory leak?