Simplified code and the reconnect feature