Added TKDestroy for deallocating memory