Changed service type

Increased ping intervall
Switched if-else with switch-case