Added virtual destructors for debugging.