Cleaning imports and logs