Added MMGETRANGE. Fixed memory leak.