Updated the mutant algorithm