Update the file to remove unncessary code.