Keep alive code added.