Get the old max execution time and set again at the end of the function