Update core and ctools