Added Valgrind support