Update corecode