Remove unneeded imports and debug-code.