Updated weight logic for traceroutes.