Added code for Mutate method