Changing substitution increment algorithm