Only restart services when necesary. Added countdown function.