Add timer and basic reconnecting