Minor bug, memory leak corrected.