Updated building code to read and work with the tag file less often.