Removing unnecessary modules