Adds fnDestroy method