Update cost