Updating to new objective function