Moved 'import serial' into the serInit() function.