Update mirror code