Tag writing planning