Added const waitingTime, Added checkSettings() to serialEvent()