Cleanup of imported code.