Reupdating?
Trying different cost function

This cost function should unfortunately give a more accurate value.
However, it produces worse results.