Set $priority to name on save