Replaces various predefined values with values read from other fields.
TODO
Document function/expression