Made a small valgrind script to automatically test for me.