Added ticking and keep alive packets every second.