Fixed memory bug
Removed test code