Changed GA code.