Save plan a global variable