Deconstructor

Depends on #246