Periodic events support, fixed up the serial driver