Optimizes imports