20131120 Modify HeartBeat. Add sreen off mode.