Update core code