Update recalculateFields.R