Add deadline and status, restore bg and vi