Added valgrind checking