Memory leaks fixed, running well