Update merlin_code