Implement KEEPALIVE and ALIVE