Implementing keepAliveMessage