Wrote generic serial driver