Memory error in this one, testing with Valgrind.