Modularized, added termination countdown timer