Changed keep alive method