First write-through adding losses as a goal
Update WP internals