Added name_match to randomize method at trainable