Use core code to register