Implemented table freeing functionality.