Replaces some hardwired variables with user-defined constants.