Adding/updating input and calculated variables