Added mutate function to solver