Cleaned up serial initialization.