Removed debug output
Added deconstructor (fixes detection)