Create corecode