Fixing the keep alive stuff.