Modified Alteration Function