Add keepalive flag