Also, for the destroy_map, you can set in the the \_\_init\_\_ method so that it is only present when using the inplace mode.