Remove delays and fix socket reconnect issues.