Added keepconnectionactive