Added definition for variable replacement.