Added keep alive file mechanism