Removal of unuseful imports and code.