Added accept/reject handling to substitution processes.