Memory leak corrected.